package com.example.apipassenger.service;

import net.sf.json.JSONObject;
import org.springframework.stereotype.Service;

@Service
public class VerificationCodeService {
    public JSONObject generateCode(String passengerPhone){
        //1.调用验证码服务，获取验证码
        System.out.println("调用验证码服务，获取验证码");
        String code="11111";
        //2.存入redis缓存
        System.out.println("存入redis");
        //3.返回值
        JSONObject result=new JSONObject();
        result.put("code",1);
        result.put("message","success");
        return result;
    }
}
